<script type="text/javascript">
$(document).ready(function(){
    //Submit form
       $('#signupButton').click(function() {
          $('#signupForm').submit();
        });
});
</script>
<div id="registerlq">
    
    <form method="post" action="<?php echo url_for('home/registerlq') //@register ?>"  name="sf_apply_apply_form" id="signupForm">

        <div id="firstname">
            <?php echo $formRegister['firstname']->renderLabel().' '.$formRegister['firstname']->render() ?>
            <?php echo $formRegister['firstname']->renderError() ?>
        </div>
        
        <div id="lastname">
            <?php echo $formRegister['lastname']->renderLabel().' '.$formRegister['lastname']->render() ?>
            <?php echo $formRegister['lastname']->renderError() ?>
        </div>
        <div id="username">
            <?php echo $formRegister['username']->renderLabel().' '.$formRegister['username']->render() ?><?php //echo $formRegister['_csrf_token']->render() ?>
            <?php echo $formRegister['username']->renderError() ?>
        </div>
        <div id="email">
            <?php echo $formRegister['email']->renderLabel().' '.$formRegister['email']->render() ?>
            <?php echo $formRegister['email']->renderError() ?>
        </div>
        <div id="email">
            <?php echo $formRegister['email2']->renderLabel().' '.$formRegister['email2']->render() ?>
            <?php echo $formRegister['email2']->renderError() ?>
        </div>
        <div id="password">
            <?php echo $formRegister['password']->renderLabel().' '.$formRegister['password']->render() ?>
            <?php echo $formRegister['password']->renderError() ?>
        </div>
        <div id="password2">
            <?php echo $formRegister['password2']->renderLabel().' '.$formRegister['password2']->render() ?>
            <?php echo $formRegister['password2']->renderError() ?>
        </div>
        <div id="birthday">
            <?php echo $formRegister['birthday']->renderLabel().' '.$formRegister['birthday']->render() ?>
            <?php echo $formRegister['birthday']->renderError() ?>
            
        </div>
        <div id="captcha" class="span-16 last">
            <?php echo $formRegister['captcha']->render() ?>
            <?php echo $formRegister['captcha']->renderError() ?>
        </div>
    </form>
    <br/><a href="#" id="signupButton"><?php echo __("Sign up");?></a>

</div>